home *** CD-ROM | disk | FTP | other *** search
-
- /* File : clrdvc.c ( cleardevice ) */
- /* Entered by : A. Wayner */
- # include <graphics.h>
-
- main()
- {
- int graphdriver = DETECT, graphmode;
-
- /* Detect adapter type and initialize */
- /* graphics system */
- initgraph( &graphdriver, &graphmode, "\\turboc" );
-
- bar( 100, 100, 150, 150 ); /*Draw some object on the screen */
- outtextxy( 10, 10, "Press any key to clear screen ");
- getch();
- cleardevice();
- outtextxy( 10, 10, "Screen cleared...");
-
- /* Wait until user presses a key */
- outtextxy( 10, getmaxy() - 50, "Press any key to exit");
-
- getch();
- closegraph();
- }
-
-